﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp4
{
    class cat : animal, Ieat
    {
        public cat(string name) : base(name)
        {
            this.Name = name;
        }

        public void eat()
        {
            Console.WriteLine("我是{0},我会吃",this.Name);
        }
        public override void print()
        {
            Console.WriteLine("我是{0},我会抓老鼠",this.Name);
        }
    }
}
